package com.mdx.order.controller;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author : jiagang
 * @date : Created in 2024/5/11 08:55
 */
@RestController
@RequestMapping("/meeting")
public class MeetingTestController {

    @PostMapping("create1")
    public JSONObject meeting(JSONObject param){
        System.out.println("请求参数：" + param);
        JSONObject result = new JSONObject();
        result.put("code", 0);
        return result;
    }

    @PostMapping("create")
    public JSONObject query(@RequestBody Map<String, Object> param){
        System.out.println("请求参数：" + param);
        JSONObject result = new JSONObject();
        result.put("code", 0);
        JSONObject data = new JSONObject();
        data.put("meetingName","第一会议室");
        data.put("time","10:30 - 11:30");
        data.put("user","jiagang");
        result.put("data", data);
        System.out.println("返回参数：" + result);
        return result;
    }
}
